* (bug 5530) Consistency between character encoding in {{PAGENAMEE}}, {{SUBPAGENAMEE...
authorLeon Weber <leon@users.mediawiki.org>
Sat, 8 Nov 2008 23:20:44 +0000 (23:20 +0000)
committerLeon Weber <leon@users.mediawiki.org>
Sat, 8 Nov 2008 23:20:44 +0000 (23:20 +0000)
RELEASE-NOTES
includes/Title.php

index 1350b70..6e33328 100644 (file)
@@ -330,6 +330,8 @@ The following extensions are migrated into MediaWiki 1.14:
 * (bug 8345) Don't autosummarize where a redirect was left unchanged
 * Made thumb caching in ForeignApiFile objects integrated with normal thumb path
   naming (/thumbs/hash/file), retired 'apiThumbCacheDir' as a result. 
+* (bug 5530) Consistency between character encoding in {{PAGENAMEE}},
+  {{SUBPAGENAMEE}} and {{FULLPAGENAMEE}}
 
 === API changes in 1.14 ===
 
index 1b2b558..8945c31 100644 (file)
@@ -638,7 +638,6 @@ class Title {
        public function getSubpageUrlForm() {
                $text = $this->getSubpageText();
                $text = wfUrlencode( str_replace( ' ', '_', $text ) );
-               $text = str_replace( '%28', '(', str_replace( '%29', ')', $text ) ); # Clean up the URL; per below, this might not be safe
                return( $text );
        }
 
@@ -648,14 +647,7 @@ class Title {
         */
        public function getPrefixedURL() {
                $s = $this->prefix( $this->mDbkeyform );
-               $s = str_replace( ' ', '_', $s );
-
-               $s = wfUrlencode ( $s ) ;
-
-               # Cleaning up URL to make it look nice -- is this safe?
-               $s = str_replace( '%28', '(', $s );
-               $s = str_replace( '%29', ')', $s );
-
+               $s = wfUrlencode( str_replace( ' ', '_', $s ) );
                return $s;
        }